package command.command;

import command.entity.Light;

/**
 * @author 帅小伙
 * @date 2022/1/12
 * @description
 */
public class LightOnCommand implements Command{

    Light light;

    public LightOnCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.on();
    }

    @Override
    public void undo() {
        light.off();
    }
}
